package cn.hxzy.ownerSource.controller;


import cn.hxzy.common.Result;
import cn.hxzy.entity.sourceEntity.SourceOperation;
import cn.hxzy.ownerSource.service.SourceOperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ao.Li
 * @since 2023-06-23
 */
@RestController
@RequestMapping("/sourceOperation")
public class SourceOperationController {

    @Autowired
    private SourceOperationService sourceOperationService;

    @PostMapping("/addOper")
    public Result addOper(@RequestBody SourceOperation sourceOperation){
        return   sourceOperationService.addOper(sourceOperation);

    }

}

